<?php
class DeleteModel{
    public function del($mid){
        $sql='delete from matchs where id='.$mid;
        $a=MysqlDb::getInstance();
        $res=$a->exec($sql);
        echo '<script>window.location.href="index.php"</script>';
    }
}

?>